# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=py3-simpleparse
_pyname=SimpleParse
pkgver=2.2.2
pkgrel=3
pkgdesc="Python library providing simple and fast parser generator"
url="https://github.com/mcfletch/simpleparse"
arch="all"
license="eGenix ISC"
depends="python3"
makedepends="python3-dev py3-setuptools"
options="!check" # no test suite
source="https://files.pythonhosted.org/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz
	python-3.9.patch"
builddir="$srcdir"/$_pyname-$pkgver

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"

	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
}

sha512sums="
ac530394d7b1e2641afe591887121d56bdb9eaddd14cb10dc505a409e73a51d4f5f01b81661f4ccacc8e5a53dde7bfd8b4e4e134ec41bb08de43e9a95369bd6b  SimpleParse-2.2.2.tar.gz
de82dea8089a3bec817af144d6ac9891e70a9d4fc532ea5d5686b6bff75587718034e700f31fffe9f823c80c1c3e381fe34ec9196fd211eb64b3c6f586800f2a  python-3.9.patch
"
